<?php

class UserScreeningController extends BaseController {
    
    /**
     * 产品录入
     * 用户筛选
     */
    public function getUserScreeningInfo (  ) {
//        $this->getParamInt( 'PBrand' , false , $isGet = true );
        //品牌
        $PBrand = 5;
        //大类
        $BCat = 1;
        //小类
        $SCat = 7;
        //消费层次
        $DHihgLevels = 1;//高档
        $DMiddleLevels = 0;//中档
        $DLowLevels = 0;//低档
        //年龄段
        $DOldAge = 0;//老年
        $DYouthAge = 0;//青年
        $DInfancyAge = 0;//幼年
        //性别
        $DManSex = 0;//男
        $DWomanSex = 0;//女
        
        $dimensions = array(  );
        
        if ( !empty ( $PBrand ) ) {
            $dimensions['PBrand'] = $PBrand;
        }
        if ( !empty ( $BCat ) ) {
            $dimensions['BCat'] = $BCat;
        }
        if ( !empty ( $SCat ) ) {
            $dimensions['SCat'] = $SCat;
        }
        if ( !empty ( $DHihgLevels ) ) {
            $dimensions['DHihgLevels'] = $DHihgLevels;
        }
        if ( !empty ( $DMiddleLevels ) ) {
            $dimensions['DMiddleLevels'] = $DMiddleLevels;
        }
        if ( !empty ( $DLowLevels ) ) {
            $dimensions['DLowLevels'] = $DLowLevels;
        }
        if ( !empty ( $DOldAge ) ) {
            $dimensions['DOldAge'] = $DOldAge;
        }
        if ( !empty ( $DYouthAge ) ) {
            $dimensions['DYouthAge'] = $DYouthAge;
        }
        if ( !empty ( $DInfancyAge ) ) {
            $dimensions['DInfancyAge'] = $DInfancyAge;
        }
        if ( !empty ( $DManSex ) ) {
            $dimensions['DManSex'] = $DManSex;
        }
        if ( !empty ( $DWomanSex ) ) {
            $dimensions['DWomanSex'] = $DWomanSex;
        }
        
        Backstage_UserInfo::getInstance()->getScreening( $dimensions );
        
    }
    
}

?>
